package com.rayenterprise.kms.client.remote;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.rayenterprise.kms.domain.KInfo;
@RemoteServiceRelativePath("infoService")
public interface InfoRemote extends RemoteService {
	/**
	 * Utility class for simplifing access to the instance of async service.
	 */
	public static class Util {
		private static InfoRemoteAsync instance;
		public static InfoRemoteAsync getInstance(){
			if (instance == null) {
				instance = (InfoRemoteAsync) GWT.create(InfoRemote.class);
			}
			return instance;
		}
	}
	public KInfo getInfo(int infoId);
	public List<KInfo> getAll();
	public KInfo save(KInfo info);
	public void deleteInfo(KInfo info);

}
